import requests from "../request";

// 请求歌单
export const getSongSheetListAxios = (page = 1) => requests.get(`https://m.kugou.com/plist/index&page=${page}&json=true`);
// 根据歌单获取歌曲列表
export const getSongListAxios = (id) => requests.get(`https://m.kugou.com/plist/list/${id}/?json=true`);
// 获取歌曲详情
export const getSongInfoAxios = (id) => requests.get(`https://m.kugou.com/app/i/getSongInfo.php?cmd=playInfo&hash=${id}`);
// 请求歌手列表
export const getSingerListAxios2 = (id) => requests.get(`https://m.kugou.com/singer/list/${id}?json=true`);
export const getSingerListAxios = (page = 1) =>
    requests({
        url: `http://mobilecdnbj.kugou.com/api/v5/singer/list`,
        method: "get",
        params: {
            version: 9108,
            showtype: 1,
            plat: 0,
            sextype: 0,
            sort: 1,
            pagesize: 15,
            type: 0,
            page: page,
            musician: 0,
        }
    })
// 请求歌手
export const getSingerAxios2 = (id) => requests.get(`https://m.kugou.com/singer/info/${id}&json=true`);
export const getSingerAxios = (singerId) => requests.get(`http://mobilecdnbj.kugou.com/api/v3/singer/info?singerid=${singerId}`);
// 获取歌手下面的歌曲
export const getSingerMusicListAxios2 = (id) => requests.get(`http://mobilecdnbj.kugou.com/api/v3/singer/song?sorttype=2&version=9108&identity=3&plat=0&pagesize=100&singerid=86747&area_code=1&page=1`);
export const getSingerMusicListAxios = (singerid) =>
    requests({
        url: `http://mobilecdnbj.kugou.com/api/v3/singer/song`,
        method: "get",
        params: {
            version: 9108,
            sorttype: 2,
            identity: 3,
            plat: 0,
            pagesize: 100,
            singerid: singerid,
            area_code: 1,
            page: 1,
        }
    })

//export const getSongListNetAxios = () => requests.get("https://www.kugou.com/yy/special/single/3847244.html");

// 请求歌手

/*export const getSongListNetAxios = (id) => requests({
    url: `https://m.kugou.com/plist/list/2agjwaa/?json=true`,
    method: "get",
})*/


//export const reqGetCategoryList = () =>requests.get(`/product/getBaseCategoryList`);

